/*
Theme Name: Anan Simple Theme
Theme URI: http://example.com/my-simple-theme
Author: Anran
Author URI: http://www.anranweb.cn
Description: AI生成的模板
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-background, custom-header, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
Text Domain: my-simple-theme
*/

/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

img{
  max-width: 100%;
}

/* 链接基本样式 */
a {
  color: #0073aa; /* 默认蓝色(未读) */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005177; /* 悬停时深蓝色 */
  text-decoration: underline;
}

/* 已读链接样式 */
a:visited {
  color: #888; /* 已读灰色 */
}


header {
  background: #35424a;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  margin-bottom: 20px;
}

header h1 a {
  color: #fff;
  text-decoration: none;
}

header nav {
  margin-top: 10px;
}

.main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
}

.main-menu li {
  margin: 0 15px;
}

.main-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

main {
  max-width: 900px; /* Increased width */
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.posts-list .post-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.posts-list .post-thumbnail img {
  max-width: 150px;
  height: auto;
  margin-right: 20px;
  border-radius: 8px;
}

.posts-list .post-content {
  flex-grow: 1;
}

.posts-list .post-content h2 {
  margin-bottom: 10px;
}

.posts-list .post-content h2 a {
  color: #35424a;
  text-decoration: none;
}

.posts-list .post-content p {
  margin-bottom: 10px;
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 5px 10px;
  background: #35424a;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.pagination .current {
  color: #333;
}

/* 头部容器样式 */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.header-container a{
  color: #fff;
}

/* 网站品牌样式 */
.site-branding {
  text-align: left;
}

/* 导航菜单样式 */
.site-navigation {
  margin-top: 0;
}

/* 主菜单样式 */
.main-menu ul{
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 菜单项样式 */
.main-menu li {
  margin-right: 1.5rem;
  position: relative;
}

.main-menu li:last-child {
  margin-right: 0;
}

/* 菜单链接样式 */
.main-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  transition: all 0.3s ease;
}

/* 菜单悬停效果 */
.main-menu a:hover {
  color: #97c9ff;
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 4px;
}

/* 当前菜单项样式 */
.main-menu .current-menu-item > a {
  color: #97c9ff;
  font-weight: bold;
}

.copyright{
  text-align: center;
  padding: 5px;
}

/* 侧边栏样式 */

.sidebar {
  width: 300px;
  padding: 20px;
  background: #f5f5f5;
}

.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.widget-categories ul {
  list-style: none;
  padding-left: 0;
}

.widget-categories li {
  margin-bottom: 8px;
}

.widget-categories a {
  text-decoration: none;
  color: #333;
}

.widget-categories a:hover {
  color: #0073aa;
}
.category-list {
  list-style: none;
  padding-left: 0;
}

.category-item {
  margin-bottom: 10px;
  position: relative;
}

.subcategory-list {
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
  display: none;
}

.category-item:hover .subcategory-list {
  display: block;
}

.category-item > a {
  font-weight: bold;
}

.subcategory-item > a {
  font-weight: normal;
  color: #666;
}

.subcategory-item > a:hover {
  color: #0073aa;
}

.content-area {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 30px;
}

.site-main {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
}


/* 评论区域样式 */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #35424a;
}

.comment-list {
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.comment-navigation {
    margin: 20px 0;
    text-align: center;
}

.comment-navigation a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.comment-navigation a:hover {
    background: #35424a;
    color: #fff;
}

.comment-form-container {
    margin-top: 40px;
}

.comment-form h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
}

.comment-notes {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-submit-btn {
    background: #35424a;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.comment-submit-btn:hover {
    background: #0073aa;
}
/* 评论列表样式 */
.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
}

.comment-avatar {
    margin-right: 20px;
    flex-shrink: 0;
}

.comment-avatar img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #888;
}

.comment-author {
    font-weight: bold;
    color: #35424a;
    margin-right: 15px;
}

.comment-date {
    color: #888;
}

.comment-content {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
}

.comment-reply a {
    color: #0073aa;
    font-size: 0.9em;
    text-decoration: none;
}

.comment-reply a:hover {
    text-decoration: underline;
}

.comment-awaiting-moderation {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* 子评论样式 */
.comment-list .children {
    margin-left: 76px;
    padding-left: 0;
    list-style: none;
}

.comment-list .children .comment-item {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}


.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 4rem;
    color: #ff6b6b;
    margin: 0 0 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: #333;
}

.error-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.error-actions .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.error-actions .button a{
  color: white;
}
.error-actions .button:hover {
    background-color: #ff5252;
}

.error-actions .button-outline {
    background-color: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.error-actions .button-outline:hover {
    background-color: #ff6b6b;
    color: white;
}

.error-search {
    max-width: 400px;
    margin: 0 auto;
}

/* 搜索表单样式 */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 20px 0;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

.search-submit {
    padding: 10px 15px;
    background: #35424a;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #0073aa;
}

.search-submit svg {
    vertical-align: middle;
}

/* 搜索结果页面样式 */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.taxonomy-description{
  color: #8d8d8d;
}

.page-title span {
    color: #ff6b6b;
}

.no-results {
    text-align: center;
    padding: 40px 0;
}

.no-results p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #666;
}

/* 归档页头部样式 */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.archive-title {
    font-size: 2em;
    color: #35424a;
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 文章列表项样式 */
.post-item {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.post-thumbnail {
    flex: 0 0 20%;
    margin-right: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

.post-content {
    flex: 1;
    overflow: auto;
}

.post-content h2 {
    margin: 0 0 15px;
    font-size: 1.5em;
}

.post-content h2 a {
    color: #35424a;
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #0073aa;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #888;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta a {
    color: #888;
    text-decoration: none;
}

.post-meta a:hover {
    color: #0073aa;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #35424a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.read-more:hover {
    background: #0073aa;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

/* 标签页头部样式 */
.tag-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tag-title {
    font-size: 2em;
    color: #35424a;
    margin-bottom: 10px;
}

.tag-description {
    color: #aaaaaa;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 标签文章列表样式 */
.tag-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tag-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tag-post .post-thumbnail {
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin: 0;
}

.tag-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tag-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.tag-post .post-content {
    padding: 20px;
}

.tag-post .post-content h2 {
    margin: 0 0 15px;
    font-size: 1.3em;
}

.tag-post .post-content h2 a {
    color: #35424a;
    text-decoration: none;
    transition: color 0.3s;
}

.tag-post .post-content h2 a:hover {
    color: #0073aa;
}

.tag-post .post-meta {
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #888;
}

.tag-post .post-meta span {
    margin-right: 15px;
}

.tag-post .post-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.tag-post .read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #35424a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.tag-post .read-more:hover {
    background: #0073aa;
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

/* 页面样式 */
.page {
    margin-bottom: 40px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2em;
    color: #35424a;
}

.page-content {
    line-height: 1.7;
}

.page-content p {
    margin-bottom: 1.5em;
}

.page-links {
    margin: 20px 0;
    font-weight: bold;
}

.page-links a {
    padding: 0 5px;
}



/* 响应式调整 */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* 调整基础字体大小 */
    line-height: 1.5;
  }
  main {
    padding: 0 15px;
  }

  .content-area {
    flex-direction: column;
    padding: 0 15px; /* 添加左右内边距 */
    width: 100%; /* 确保宽度不超出视口 */
    box-sizing: border-box; /* 包含内边距在宽度内 */
  }
  .site-main{
    width: 100%; /* 确保宽度不超出父容器 */
    padding: 15px;
    box-sizing: border-box;
    margin: 0; /* 移除默认外边距 */
  }

  .sidebar {
    width: 100%;
  }

  /* 文章标题和内容调整 */
  .entry-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    }

    .entry-content {
        font-size: 1rem;
    }

    /* 导航菜单调整 */
    .main-navigation {
        padding: 0 10px;
    }
    .main-menu li{
      margin: 0;
    }

    .post-item {
        flex-direction: column;
    }
    
    .posts-list .post-thumbnail {
      width: 100%; /* 图片宽度占满容器 */
      margin-right: 0;
      margin-bottom: 15px;
    }
    
    .posts-list .post-thumbnail img {
        max-width: 100%; /* 确保图片不超出容器 */
        height: auto;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
    .tag-posts {
        grid-template-columns: 1fr;
    }
}

/* 标签云样式 */
.widget .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.widget .tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget .tag-item:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* 代码块样式 */
.code-box{
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: rgb(171, 178, 191);
  padding: 15px 16px;
  font-family: "Operator Mono", Consolas, Monaco, Menlo, monospace;
  font-size: 14px;
  background: rgb(40, 44, 52);
  box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 3px;
  visibility: visible;
}

